package com.shisfish.library.Impl;

import java.util.List;
import java.util.Map;

import org.springframework.context.ApplicationContext;

import com.shisfish.library.Inter.IBookLoanInter;
import com.shisfish.library.Model.BookLoan;
import com.shisfish.library.Utils.Global.GetACXmlUtils;

public class BookLoanImpl implements IBookLoanInter {

	private ApplicationContext ac = GetACXmlUtils.getACXml();
	private IBookLoanInter mapper = (IBookLoanInter) ac.getBean("bookLoanMapper");

	@Override
	public int insertOne(BookLoan t) {
		// TODO Auto-generated method stub
		return mapper.insertOne(t);
	}

	@Override
	public int insertAll(List<BookLoan> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateOne(BookLoan t) {
		// TODO Auto-generated method stub
		return mapper.updateOne(t);
	}

	@Override
	public int updateAll(List<BookLoan> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<BookLoan> selectById(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<BookLoan> selectByKey(String key) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int countAll() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<BookLoan> selectAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int deleteOneById(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllById(List<?> ids) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteOneByKey(String key) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllByKey(List<?> keys) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<BookLoan> selectByISBNUser(String employee, String isbn) {
		// TODO Auto-generated method stub
		return mapper.selectByISBNUser(employee, isbn);
	}

	@Override
	public int countByLoaner(String loaner) {
		// TODO Auto-generated method stub
		return mapper.countByLoaner(loaner);
	}

	@Override
	public List<Map<String, Object>> selectByLoanerPage(String loaner,
			int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectByLoanerPage(loaner, currentPage, pageSize);
	}

	@Override
	public List<Map<String, Object>> selectAllMessage(int currentPage,
			int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectAllMessage(currentPage, pageSize);
	}

	@Override
	public int countByDate(String choDate) {
		// TODO Auto-generated method stub
		return mapper.countByDate(choDate);
	}

	@Override
	public List<Map<String, Object>> selectByDate(String choDate,
			int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.selectByDate(choDate, currentPage, pageSize);
	}

	@Override
	public int countLoanLogByDate(String choDate) {
		// TODO Auto-generated method stub
		return mapper.countLoanLogByDate(choDate);
	}

	@Override
	public List<Map<String, Object>> loanLogByDate(String choDate,
			int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.loanLogByDate(choDate, currentPage, pageSize);
	}

	@Override
	public int countLoanLogByDateLoaner(String loaner, String choDate) {
		// TODO Auto-generated method stub
		return mapper.countLoanLogByDateLoaner(loaner, choDate);
	}

	@Override
	public List<Map<String, Object>> loanLogByDateLoaner(String loaner,
			String choDate, int currentPage, int pageSize) {
		// TODO Auto-generated method stub
		return mapper.loanLogByDateLoaner(loaner, choDate, currentPage, pageSize);
	}

	@Override
	public int bookLogCount(String isbn) {
		// TODO Auto-generated method stub
		return mapper.bookLogCount(isbn);
	}

	@Override
	public List<Map<String, Object>> bookLogPage(String isbn, int currentPage,
			int pageSize) {
		// TODO Auto-generated method stub
		return mapper.bookLogPage(isbn, currentPage, pageSize);
	}


}
